//
//  HookWebViewController.h
//  Staff
//
//  Created by caiyao on 1/6/15.
//
//

#import <UIKit/UIKit.h>
#import "KKProgressTimer.h"

@class HookDispatcher;

@interface HookWebViewController : UIViewController <UIWebViewDelegate,UIGestureRecognizerDelegate,KKProgressTimerDelegate>{
    
    UIWebView *_webContentView;
    UIWebView *_webContentViewL;
    UIWebView *_webContentViewR;

    
    HookDispatcher *_hookDispatcher;
    BOOL isPageTransactioning;
    
    NSString *homeUUID;
    
    
}

@property (nonatomic, retain) UISwipeGestureRecognizer             *oneFingerSwipeRight;
@property (nonatomic, retain) UISwipeGestureRecognizer             *oneFingerSwipeLeft;
@property (nonatomic, retain) UISwipeGestureRecognizer             *oneFingerSwipeUp;
@property (nonatomic, retain) UISwipeGestureRecognizer             *oneFingerSwipeDown;
@property (nonatomic, retain)  UITapGestureRecognizer              *singleTap;
@property (nonatomic, copy)   NSString                             *gestureEnventJs;

@property (nonatomic, retain) UILongPressGestureRecognizer         *longPress;
@property (nonatomic, copy)   NSString                             *longPressEnventJs;
// background support
@property (nonatomic, retain) IBOutlet UIImageView                 *bgImageView;
@property (nonatomic, retain) NSTimer                              *longPressTimer;
@property (nonatomic, assign) NSInteger                                                       longPressSecond;
@property (retain, nonatomic) KKProgressTimer *counterView;

@property (nonatomic, copy) NSString *pageSlide;
@property (nonatomic, copy) NSString *shakeEventJS;




- (void)registerLongPress:(NSString *)eventJS;
- (void)unRegisterLongPress;

- (void)pageTransaction:(NSString *)targetLink slide:(NSString *)slide;

- (void)registerShake:(NSString*)eventJS;
- (void)unRegisterShake;

- (void)openMyLaisee;

@end
